#include "xtypes.h"
#include "xmemory.h"
#include "xtinystack.h"

#include <stdlib.h>
#include <string.h>


void InitMemoryPool()
{
	return;
}

void TidyMemoryPool()
{
	return;
}




wildptr_t xPoolMemoryAlloc( int_t _Size )
{
	wildptr_t ptr = xMemoryAlloc(_Size);
	return ptr;
}
void xPoolMemoryFree( wildptr_t _Addr, int_t _Size )
{
	xMemoryFree(_Addr);
	return;
}


wildptr_t xMemoryAlloc( int_t _Size )
{
	return malloc(_Size);
}

void xMemoryFree( wildptr_t _Addr )
{
	free(_Addr);
	return;
}



wildptr_t xMemoryCopy( wildptr_t _Dst, wildptr_t _Src, uint_t _Size )
{
	return memcpy( _Dst, _Src, _Size );
}
wildptr_t xMemoryMove( wildptr_t _Dst, wildptr_t _Src, uint_t _Size )
{
	return memmove( _Dst, _Src, _Size );
}
wildptr_t xMemorySet( wildptr_t _Dst, int_t _Val, uint_t _Size )
{
	return memset( _Dst, _Val, _Size );
}
wildptr_t xMemoryChar( wildptr_t _Dst, int_t _Val, uint_t _Size )
{
	return memchr( _Dst, _Val, _Size );
}